<? if ($c = stack('name')) {

	?><div id="cpn-<?=$c?>" class="cpn-logout"><?
	
		if (gccLoggedIn()) {
			
			?><div class="logged-in">

				<a href="/<?=$CONTEXT['lang_prefix']?>my/" class="my"><?=tc('My space')?></a><br />				
				<span class="login"><?=gccUserInfo('email')?></span>
				<form action="" method="post" onsubmit="return confirm('<?=htc('Are you sure you wish to sign out?')?>')">
					<input type="submit" name="vlogout" class="logout" value="<?=htc('Sign out')?>"/>
				</form>

			</div><?			

		}

	?></div><?

	unstack();
}
